package cn.edu.scau.cmi.dengzhengyu.domain;

import java.io.Serializable;

public class Student implements Serializable {
	// Fields

	private long id;
	private String name;
	private Teacher teacher;

	
	public Student() {
		
	}
	
	public Student(long id) {
		this.id=id;
	}
	
	public Student(long id,String name) {
		this.id=id;
		this.name=name;
	}
	
	public Student(long id,String name,Teacher teacher) {
		this.id=id;
		this.name=name;
		this.teacher=teacher;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	
	
}
